package com.zhiyou100.review.day006.intranet;

/**
 * @packageName: ThisInnerTest
 * @className: com.zhiyou100.review.day006.intranet
 * @Description: TODO 内部类测试
 * @author: yang
 * @date: 6/14/20
 */
public class ThisInnerTest {

    private String name;

    class InnerClass{
        public InnerClass() {
            ThisInnerTest thisInnerTest = ThisInnerTest.this;
            // 使用 this 在内部类中访问外部类
            String outerName = thisInnerTest.name;
        }
    }

}
